package com.mskj.zxmy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @BelongsProject: zxmy
 * @BelongsPackage: com.mskj.zxmy.dto
 * @Author: lk
 * @CreateTime: 2025-07-22
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@Schema(description = "工艺任务信息")
public class TaskDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "工序任务ID")
    private Integer processTaskId;

    @Schema(description = "任务编号")
    private String taskNo;

    @Schema(description = "产品名称")
    private String prodName;

    @Schema(description = "交付日期")
    private LocalDate deliveryDate;

    @Schema(description = "工序名称")
    private String processName;

    @Schema(description = "负责人ID")
    private String functionaryId;

    @Schema(description = "负责人姓名")
    private String functionaryName;

    @Schema(description = "任务开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime taskStartTime;

    @Schema(description = "任务总量")
    private BigDecimal taskCount;

    @Schema(description = "已完成数量")
    private BigDecimal finishCount;

    @Schema(description = "是否入库")
    private boolean rkFlag;

    @Schema(description = "是否领料")
    private boolean llFlag;

    @Schema(description = "是否质检")
    private boolean zjFlag;


}
